#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>



int* findDisappearedNumbers(int* nums, int numsSize, int* returnSize) {
	int* arr = (int*)malloc((numsSize - 1) * sizeof(int));
	int* arr2 = (int*)malloc((numsSize) * sizeof(int));
	int count = 0;
	memset(arr2, 0, (numsSize) * sizeof(int));
	for (int i = 0; i < numsSize; i++)
	{
		arr2[nums[i]] = 1;
	}
	for (int i = 0; i < numsSize; i++)
	{
		if (arr2[i] == 0)
		{
			arr[count] = arr2[i + 1] - 1;
			count++;
		}
	}
	returnSize = count;
	return arr;

}